package com.meizi.experimentcode.appimpl;

import com.meizi.experimentcode.entity.Apple;

/**
 * @author Administration
 * @date 2022/2/24 - 11:16 - 星期四
 * @project lambda
 * @package com.meizi.experimentcode.appimpl
 * @by 晨
 */
public class ApplePredicateImpl implements ApplePredicate{
    @Override
    public boolean test(Apple apple) {
        return "yellow".equals(apple.getColor()) &&
                apple.getWeight() > 150;
    }
}
